package com.dpiinc.TechPage.model.jbean;

import java.io.Serializable;

import me.yokeyword.indexablerv.IndexableEntity;

public class CountryBean implements IndexableEntity, Serializable {
    private String name;
    private String number;
    private String pinyin;

    public CountryBean(){};

    public CountryBean(String name, String number){
        this.name = name;
        this.number = number;
    }

    public void setName(String name) { this.name = name; }

    public void setNumber(String number) { this.number = number; }

    public void setPinyin(String pinyin) { this.pinyin = pinyin; }

    public String getName() { return name; }

    public String getNumber() { return number; }

    public String getPinyin() { return pinyin; }

    @Override
    public String getFieldIndexBy() {
        return name;
    }

    @Override
    public void setFieldIndexBy(String indexByField) {
        this.name = indexByField;
    }

    @Override
    public void setFieldPinyinIndexBy(String pinyin) {
        this.pinyin = pinyin;
    }

}
